#ifndef WF_EDITCOPY_H
#define WF_EDITCOPY_H

#include "pf_actioninterface.h"
#include "gui_export.h"

/**
 * This action class can handle user events for copying or cutting entities 
 * to the clipboard.
 */
class GUI_EXPORT WF_EditCopy : public PF_ActionInterface {
	Q_OBJECT
public:
    /**
     * Action States.
     */
    enum Status {
        SetReferencePoint    /**< Setting the reference point. */
    };
	
public:
    WF_EditCopy(bool copy,
                      PF_Container& container,
                      PF_GraphicView& graphicView);
    ~WF_EditCopy();

	static QAction* createGUIAction(LX_Define::ActionType type, QObject* parent);

    virtual void init(int status=0);

    virtual void trigger();
	
    virtual void mouseMoveEvent(PF_MouseEvent* e);
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
	
	virtual void coordinateEvent(PF_CoordinateEvent* e);
	
    virtual void updateMouseButtonHints();
    virtual void updateMouseCursor();
    virtual void updateToolBar();

protected:
    /** Copy (true) or cut (false) */
    bool copy;

	PF_Vector referencePoint;
};

#endif
